Index: uspace/srv/fs/exfat/exfat_fat.c
===================================================================
--- uspace/srv/fs/exfat/exfat_fat.c	(revision f7d90eb1910055da062ec1fcebd8aa104bf0b10a)
+++ uspace/srv/fs/exfat/exfat_fat.c	(revision a18bd224ae0d27a7e7e40bbb53f7f54f8bd5a580)
@@ -520,6 +520,22 @@
     exfat_cluster_t count)
 {
-	/* TODO */
-	return EOK;
+	if (nodep->firstc == 0) {
+		return bitmap_alloc_clusters(bs, nodep->idx->devmap_handle, 
+		    &nodep->firstc, count);
+	} else {
+		exfat_cluster_t lastc, clst;
+		lastc = nodep->firstc + ROUND_UP(nodep->size, BPC(bs)) / BPC(bs) - 1;
+
+		clst = lastc+1;
+		while (bitmap_is_free(bs, nodep->idx->devmap_handle, clst) == EOK) {
+			if ((clst - lastc) == count){
+				return bitmap_set_clusters(bs, nodep->idx->devmap_handle, 
+				    lastc+1, count);
+			}
+			else
+				clst++;
+		}
+		return ENOSPC;
+	}
 }
 
