Use correct flags in write

Add specs
Correct typo carset -> charset

Add specs
Update JSDoc for fs-common read, write and append
Merge pull request #28 from Stuk/fscommon-fixes

fs-common fixes