added FileOutputStream.write