Fixed writing compressed sysmiss bug

Added the check for the end of the of a compressed block after writting
a sysmiss, so it will write the uncopressed buffer next