Using write() chaining in core code

Added the user of chaining off of `DataObject::write()` in the core