Should I transfer to UCLA?

The choice is yours. Nobody other than you can make the decision.

Yes, when you apply to graduate school, the name of your school does have an impact. But a poor GPA at a top school is not necessarily better than a great GPA at a school nobody has even heard of. When you say “a B at UCLA is worth more than an A at CSUN”, it really depends on the situation. I would say that in cases where it is either you have some B’s but otherwise A’s at UCLA versus straight A’s at CSUN, then UCLA is more favorable. However, in cases where it is either you have all B’s or below at UCLA versus straight A’s at CSUN, then CSUN is more favorable.