Enables fs writing by implementing writeBuffer and writeString functions. Fixes a bug with the read function when pos is negative.