Fix descriptor leaks in writeFile and appendFile
Fix descriptor leaks in writeFile and appendFile

btulchinsky/idbfs,filerjs/filer,sedge/filer,humphd/filer,btulchinsky/idbfs,sedge/filer,humphd/filer,filerjs/filer