NEW Changed `DataObject::write()` to return `$this`

Changed `DataObject::write()` to return `$this` as per new SS 3 convention

Fix for #1843