please check the form status by putting in message of when-button-pressed trigger.

the commit built-in is inserting the record because of unchanged form status.

in case u can not find it put break and debug it.