correcting IoMode check for SEEK_AND_WRITE
Merge pull request #295 from daniel-meister/2.6

correcting IoMode check for SEEK_AND_WRITE