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.
Merge pull request #2 from casualfish/fixbugs

fix wrong for-loop calculation in position_blocks_back