Hello gramirezv,
Unfortunately we have no blocks available for writing to NVM. The only way you can do this is by adding custom code - you'll have to write by hand whatever you need. An alternative to this is using a System Start or System Outputs block (they come with standard Simulink blockset) In the System Start you can write all the code for initialization (executed once, at the beginning), while on System Outputs, you can write the code that is executed in the main loop.
As for the code itself, you can download S32 Design Studio for ARM (if you haven't already). There, once you apply the latest patch, you'll get the SDK for S32K1xx. This SDK comes with lots of examples, one named flash_partitioning_s32k144. You can check that out, along with the documentation they provide for the API. Unfortunately I haven't used the driver for FlexNVM up until now, so I can't be of more help.
Kind regards,
Razvan.