Well despite the fact that the MIG-29 didn't perform too well against the F-16 or the Su-27 we have to keep in mind that although the plane itself is a potent platform they were used inadequately by both the Iraqi and Eritrean air forces. Keep in mind that the HUD was first used in the MIG-29s.
On the other hand I do think that the JF-17 could offer a good fight against the MIG-29 with the addition of Western avionics and radar (one of F-16's chief advantages over the MIG-29). The JF-17 is a very versatile platform and could either be an economical or potent plane depending upon the amount of customization put into the plane.
i think we are talking about current JF17 (not about block 2 ) vs Mig 29 so how thats close or batter