[RESEND,PATCH 5/7] ima: Fix datalen check in ima_write_data()