Fix writing in W$ Vista encrypted volumes

This is the same bug as the one solved by d61d053, but for the write
part.