an alternative to fs.createWriteStream that uses stream-buffers