jscript: Fixed handling block_cnt in jsheap_alloc.