refactored enoent error creation
implemented fs.createWriteStream