write_booster function

Write the internal booster saved in the learner to file