Added write_attribute method for attribute setter methods

*Allows similar use of 'write_attribute' in ActiveRecord for methods that override an attribute setter
*Same as ActiveRecord, write_attribute does not save the model instance