pread,pwrite offset fixed for InMemoryFs
dup/dup2 code pieces added
tests for pread, pwrite and dup added