Fix write_object.
Merge pull request #2076 from xtao/fix-zstream

Fix write_object.