7.0 fix write off

The writeoff comparaison is in the wrong way