implemented rmdir syscall