1.what are the differences between A and B?
First, both are interchangeably used. But if you are looking for difference in nuances:
A is stating he does not want specifically one but leaves open the possibility for portions thereof or even perhaps multiple bananas. A can plausibly be continued by: "Ok, but just have half." or "Ok, then have two." However, in most situations the intention is clear that A does not want half, one, two or any number of bananas.
B specifies that he has no interest in bits, bites or portions of a or any bananas.
2.why does answer A use "one" , not use "ones"? "bananas" is plural.
A is stating how many bananas he does not want. Generally regardless of how many he is offered the response is "I don't want one." However, if someone offered "How about two bananas?" the response could be "No thanks, I don't want two". "One" is a cardinal number. You are counting bananas; one, two, three, etc. We don't count using "ones" or "two's" for that matter.