fix wrong for-loop calculation in position_blocks_back

Fix wrong for-loop calculation in position_blocks_back
which will cause vtltape process to crash.