Well, depending on your ethnicity of course. In Singapore I was just told off for a small bag with maybe a gram of weed left in my pocket after flying in from Amsterdam, they did not seem particularly interested in the situation but stressed that it should never happen again.
I’d be shocked if the airport experience at Bali was really different, although they would probably want a bribe from you.
More likely you’ll face a fine or a strong talking to if you get caught at the airport with some small quantity of pot.