Support for fwrite(), file_put_contents() etc.
$data: The string to be written.
The number of bytes written (integer).
Overrides StreamWrapperInterface::stream_write
http://php.net/manual/streamwrapper.stream-write.php
public function stream_write($data) {
return fwrite($this->handle, $data);
}