add fs::write and fs::writeFile and refactor fs module