
Julie S. answered 07/17/19
Chemistry Can Be Fun! 25 Years Tutoring Gen Chem and Orgo Chem
The piece you are missing is the fact that these aren't ions, the bond is covalent shared electrons. The much larger electronegativity difference in H-F causes the charges to be separated more by the more uneven distribution of the electrons. H electronegativity is 2.1 vs F 4.0, large difference = highly polar bond (remember what bonds can participate in Hydrogen Bonding as an intermolecular force??) So there is a significant charge separation in the H-F bond, it is a very highly polar bond, almost approaching ionic character!
But with H-I, the electronegativity difference is 2.1 vs 2.5 = 0.4, barely polar at all. So it's not just about bond length, you have to also look at how much the charge is actually "separated" in that bonding situation.
Heck, think about an iodine molecule - pretty high bond length, right? But it is NONPOLAR - there is NO charge separation, no net dipole, because the atoms have the same electronegativity! Hope that helps...