simple write test using FileOutputStream