show deprecation warning for .write()
Merge pull request #51 from jonathanong/deprecate-write

show deprecation warning for .write()