added lseek test program
found bug in data seek, was missing break's in case
fixed mis-calculation in read/write offset