Is there a way to burn a bootloader with the platformIO IDE?
not automatically. If you need a button you can do it with extra_script in a separate env.
See Atmel AVR — PlatformIO latest documentation