UBI: fix eraseblock picking criteria