debug and pass lab4, ex7, there are some things wrong with permission check in syscall