fixed O_APPEND behavior
fixed O_TRUNC creation time
implemented O_NONBLOCK