Add getter for block index for BlockOutStream

Add getter method for block index for BlockOutStream for accessing all internal state of the block stream.