Write reference monitor for Seattle
Use security layers functionality
see the security layer example on the web page
Rules:
Restricted a file to have a fixed size. 
Be accurate: do not let the write operation to exceed the file beyond size limit.
Be efficient: Do not re-read upon write!
Be secure: Make sure that an attacker cannot circumvent this!
A Reference monitor for Seattle to limit file size to set max file size limit