Add bytesWritten property

Added a bytesWritten property which matches the property on a writable filestream.