Added functionality for the read system call. Please note that offset is not updated in this implementation.