correcting IoMode check for SEEK_AND_WRITE