Ionization energy is the energy required to remove electron from isolated gaseous atom. ions are formed as a result of ionization energy, hence named. but in case of F- removing an electron forms a neutral atom.
electron affinity( more appropriatly electron gain enthalpy) is the energy released when an extra elecrtron is added to the valence shell of neutral gaseous atom.
In the above case energy required to remove an electron from F- and energy released when an electron is added to F will be equal.