Secure boot is only for loading, so, once system boots, this malware can install a new boot loader.
Though, on some motherboards, there is a BIOS option to prevent writing to the boot sector (but, then again, the damage is already done, this malware just writes a new boot loader to display the message)