lightnvm: code style cleanup

While getting an understanding of the changes, I fixed some of the code
styles and simplified the shadow page write logic.

As we're only ever writing a second page, lets not do it as a loop and
simplify the logic.