Answer:
First write them and take responsibility for what you did.
Second make sure to use I pronouns
Ex. I am turkey sorry I broke your bike.
Third Offer to try and get it fixed or buy them a new one
Fourth make sure you apologize for what happened
Fifth make sure he/she knows that you are thankful for letting he/she borrow your bike. Hope this helped :)