Fixing Test For Data not fitting in a block

    * Added additional check for data length before writing to block
    * Fixed the "exceedingBlockSizeTest"