One of the factors of the electronegativity of an atom is the number of protons in the nucleus. The more protons in the nucleus, the greater the electronegativity, as the attraction to the electrons of another atoms is increased. After the periodic table the nitrogen has seven protons, but fluorine has nine. So fluorine has a greater attraction to the electrons of an atom and that is equivalent to the greater electronegativity.