Iron abundances and heating of the intracluster medium in hydrodynamical simulations of galaxy clusters