The idea that a tax will prevent inflation is an intuition that a lot of people have, but it's not correct. If your basic income is going to cause inflation, then a tax is not going to help. What matters is the level of consumer spending and the level of production that the consumer spending is chasing.
If you're curious, I've written a few blog posts about this: