Checkpoint : Write the checkpoints in blocs

Link: https://github.com/sebhtml/ray/issues/57
Signed-off-by: Jean-François Erdelyi <jean-francois.erdelyi.1@ulaval.ca>
Reviewed-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>