add test_file_write2, using os.OpenFile to write file