Fix a bug when returning the filehandle in creat() and return the filehandle