Implemented the mknod function to support special files and block devices