fixed issue #81

pread, pwrite implemented for Devices, InMemory fs. Tests.