Reduce available memory in this block .
blockSize [ wstIdx ] -= processSize [ i ] ; } } document . write ( " " + " " + " " ) ; for ( let i = 0 ; i < n ; i ++ ) { document . write ( " " + ( i + 1 ) + " " + " " + processSize [ i ] + " " ) ; if ( allocation [ i ] != - 1 ) document . write ( allocation [ i ] + 1 ) ; else document . write ( " " ) ; document . write ( " " ) ; } }