To obtain a Clear Title to the car (proof of ownership) you must pay off the loan in total. Without a clear title any money you might get in the sale is properly that of the Loan holder. Most lien holders Keep the Title until it is paid off.
It is not uncommon to call the Lender and make arrangement to buy (payoff) back the loan and get the title at the same time. Otherwise it may take a week or three for the Lien holder to mail it to you after you pay it off.
Sometimes you get a discount on the loan for early payoff, other companies charge a penalty fee for early payoff.
In theory nothing wrong with selling the car as long as you pay back what you owe - however when you sell a car its fairly easy to check if it has finance outstanding
If you sold your car you would get any money left after you have settled your loan.
The amount you still owe would go to Barclays. If there's anything left over it would go to you.
Don't do it I believe