correcting IoMode check for SEEK_AND_WRITE

ticket #8105