Fixing bug in write_element_values() where wrong number of vars was computed

This issue only manifested itself when we tried to write a certain number of elemental variables on a certain size mesh.  Perhaps we were just getting lucky with integer division before?