Avoid writing too many files at the same time

This fixes `fs.js:75 throw err;`
Merge pull request #2 from pathawks/patch-1

Avoid writing too many files at the same time