fixed several issues when writing to client files in fs.c
fixed several issues when writing to client files in fs.c


sunaku/wmii,sunaku/wmii,sunaku/wmii,sunaku/wmii,bwhmather/wmii,0intro/wmii,0intro/wmii,bwhmather/wmii,0intro/wmii,bwhmather/wmii,bwhmather/wmii,bwhmather/wmii,sunaku/wmii,0intro/wmii