How can chlorine have an oxidation number of 3 in chlorite?
It is indeed in the +3 oxidation state. Keep in mind, though, that that does not mean chlorine lost three electrons. That polyatomic ion is not made up of smaller ions.