BLOCK: minor corrections regarding the writing of endblk.

Signed-off-by: bert <bert.timmerman@xs4all.nl>