diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -87,7 +87,7 @@ class WriteStream extends stream.Writable {
     if (this._writeRequest !== null)
       return;
 
-    this._writeRequest = this._output.write(chunk)
+    this._writeRequest = this._output.writeAll(chunk)
     .then(size => {
       this._writeRequest = null;
Use writeAll() to avoid issues on partial writes

Fixes #2.