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