If you leave your employer before you have completed the salary sacrifice term, any balance remaining must be repaid from your final net salary, i.e. without tax/National Insurance savings.
To take ownership of the bike a transfer of ownership process will also apply within the HMRC Fair Market Valuation guidelines. Your employer will be able to advise which transfer option would apply to you.