Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-js
diff --git a/lib/common/plugin/FileWriter.js b/lib/common/plugin/FileWriter.js
index e0e5626..652240b 100644
--- a/lib/common/plugin/FileWriter.js
+++ b/lib/common/plugin/FileWriter.js
@@ -158,7 +158,7 @@
         throw new FileError(FileError.INVALID_STATE_ERR);
     }
 
-    if (!offset) {
+    if (!offset && offset != 0) {
         return;
     }