changed NameError in classes.Series.write___ functions to IOError