Update interface for Stream write to match subclass implementation
Merge pull request #23 from cheung31/master

stream write method signature