[PATCH] direct-io: bug fix in dio handling write error