It is indeed a terrible engine for a fighter..and in truth the F-14 was originally intended to use a different engine but the TF30 was available but it was replace the first chance Navy had a chance..the F-14B/D models used F110 Turbofan engines which were superior interms of thrust, weight, and reliability..but you have to remember the TF30 was never designed to be carried by a fighter..it was designed to be carried by strike planes the F-111 which in theory wouldn't need to manuevere in combat..not to mention it was one of the 1st Turbofan engines to be used in military aircraft.
But like I said..the Cost, time, and effort in finding a proper replacement, modifying the airframe would cost alot and in the end its unlikely Iran could even acquired a proper replacement anyway...Also studying the TF30 would give Iran insight into developing their own Turbofan engines. Which in turn could used to develop a small turbofan engine for a Tomahawk-like cruise missile, or a large one for Fighter aircraft..