both of these statements kind of surprise me. Goody huts grant the lowest costing techs first, so writing should be popped later...
and also, if you're expansionist, you shouldn't be popping barbs, you have "friendly" relations with the natives as part of your trait (however if someone else pops it and you run into it or are near it, you get unlucky)