fix write a closed fd