Fix dirty_to and dirty_from bounds in write_log
PGLog: improve debugging for write_log

Signed-off-by: Samuel Just <sam.just@inktank.com>