Update AT24.js

Fix handling of i2ca; No longer create global if i2ca argument not specified, and corrected tests for argument being undefined. 

Add writel() to write blocks of any length.